package cn.edu.scau.cmi.liyetian.simpleFactoryMethod;

import cn.edu.scau.cmi.liyetian.simpleFactoryMethod.domain.*;

public class MeatFactory {
	public static Meat getMeat(String meatTypeString) {
		Meat meat = null;
		if(meatTypeString.equals("Beef")) {
			meat = new Beef();
		}
		else if(meatTypeString.equals("Pork")) {
			meat = new Pork();
		}
		else if(meatTypeString.equals("Chicken")) {
			meat = new Chicken();
		}
		return meat;
	}
}
